﻿<html>
<head>
<title>停止服务</title>
<link rel="stylesheet" href="/css/def.css">
<script src="/js/p.js"></script>
<style type="text/css">
.plist {border:1px solid #D8D8D8}
.tr2 {background:#f1f1f1}
</style>
</head>

<body class="MyBody" scroll="yes">

<div style="overflow: auto; text-align: left; height: 35px; background-color: #C1FFE4;"></div>

<table cellpadding='0' cellspacing='0' class='Header3'>
<tr>
<td nowrap="nowrap" align="left" style="background-color:#fcfcfc;">
<div>&nbsp; &nbsp; &nbsp;<input type="button" name="stopSvr" value="停止所有服务" onclick="stopSvr()" /></div>
</td>
</tr>
</table>
<div id="divResultMsg" style="text-align: left; background-color: #C1FFE4;">
<table id="tabResultMsg" style="border: solid 0px #C1FFE4; text-align:left;color: #3E6373; display:none;">
<tr>
<td style="padding: 5px 0px 0px 10px;vertical-align: top;"></td>
<td style="padding-top:5px"><pre id="spanResultMsg" style=" font-size: 12px;"></pre></td>
</tr></table>
</div>

<div id="divHintMsg" style="position:absolute; top:0px; right:30px; z-index: 9901;background:#DDDDDD;filter:alpha(opacity=90);opacity:0.9; border: solid 1px #BCBCBC; display: none;"></div>

<script type="text/javascript">


function stopSvr() {
	try {
		if (confirm("确定关闭所有服务吗？")!=true){
			return;
		}
		getHttpTimeout("/s/stopserver?s=direct", 30, stopWeb);
	}
    catch (err) {
        outputResultMsg("此页面存在一个错误。\n\n错误描述: " + err.description);
    }
}

function stopWeb(){
	appendResultMsg(this.responseText+"\r\n关闭web服务");
	getHttpTimeout("/s/stopserver?s=web", 10, chkWeb);
}

function chkWeb(){
	appendResultMsg(this.responseText);
}

</script>
</body></html>

